package my.suveng.oauth2.service.db.mysql.dao.jpa;

import my.suveng.oauth2.service.db.mysql.model.entity.SysPermission;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

/**
 * 权限表
 * 
 * @author suveng
 * 
 * @date 2020-03-28 23:03:36
 */
@Repository
public interface SysPermissionRepository extends JpaRepository<SysPermission, Long>,
        JpaSpecificationExecutor<SysPermission>, QuerydslPredicateExecutor<SysPermission> {

    SysPermission findByName(String name);

}
